<?php echo '';exit;?>
<!--{eval}-->
function klp_getspic($tid,$num,$type=''){
	if($type == 'klp_cpicnums') {
		return count(DB::fetch_all('SELECT tableid FROM '.DB::table('forum_attachment').' WHERE tid = '.$tid));
	}
	foreach (DB::fetch_all('SELECT tableid FROM '.DB::table('forum_attachment').' WHERE tid = '.$tid) as $klp_getpicinfo){
		foreach ($getdata = DB::fetch_all('SELECT * FROM '.DB::table('forum_attachment_'.$klp_getpicinfo['tableid'].'').' WHERE tid = '.$tid . '  LIMIT  0 ,'.$num) as $klp_getspic){
			
			if($type == 'klp_cpicsomes'){
				$klp_picarr[$klp_getspic['aid']] = getforumimg($klp_getspic['aid'],'0','300','300','fixnone');
			}else{
				$klp_picarr[$klp_getspic['aid']] = getforumimg($klp_getspic['aid'],'0','160','160','fixnone');
			}
		}
		break;
	}
	return $klp_picarr;
}
require_once(DISCUZ_ROOT."./source/function/function_post.php");
<!--{/eval}-->
<div class="klp_mmolist">
<!--{if $_G['forum'][icon]}-->
<!--{eval $parse = parse_url($_G['forum'][icon]);}-->
	<!--{if !isset($parse['host'])}-->
		<!--{eval $_G['forum'][icon]=$_G['setting']['attachurl'].'common/'.$_G['forum'][icon];}-->
	<!--{/if}-->
<!--{/if}-->   
          
	<div class="mobile_bktop cl" > 
	   <div class="klp_mlistbgblur"><!--{if $_G['forum'][icon]}--><img src="$_G['forum'][icon]" /><!--{else}--><img src="{IMGDIR}/forum{if $_G['forum'][folder]}_new{/if}.gif" /><!--{/if}--></div>
		<div class="f_btn"<!--{if $_G['uid']}--> style="right: 70px;"<!--{/if}--> >
		<a href="home.php?mod=spacecp&ac=favorite&type=forum&id=$_G[fid]&handlekey=favoriteforum&formhash={FORMHASH}" id="a_favorite" class="klp_mfav" onclick="showWindow(this.id, this.href, 'get', 0);">+ 关注</a>
		</div> 
		<!--{if $_G['uid']}--><div class="f_btn">
		<a href="forum.php?mod=post&action=newthread&fid=$_G[fid]"  class="klp_mfav" >发布</a>
		</div><!--{/if}-->
		<a href="forum.php?mod=forumdisplay&fid=$_G[fid]" class="hd_box"> 
		<div class="f_ico">
		 <!--{if $_G['forum'][icon]}--><img src="$_G['forum'][icon]" /><!--{else}--><img src="{IMGDIR}/forum{if $_G['forum'][folder]}_new{/if}.gif" class="forumico"/><!--{/if}-->
		</div>
		<h2 class="f_name">$_G['forum'][name]</h2>
		<p class="f_info">{lang index_today}: $_G[forum][todayposts]&nbsp;&nbsp;{lang index_threads}: $_G[forum][threads]&nbsp;&nbsp;关注: $_G[forum][favtimes]</p> <!--{if !$subforumonly}--><!--{/if}-->
		<!--{if $_G['page'] == 1 && $_G['forum']['rules']}-->
		<style type="text/css">
			.mobile_bktop h2{margin-top: 2px;}
		</style>
<p class="f_rules">$_G['forum'][rules]</p><!--{/if}--></a> 
	</div>  
	
	<!--{if $subexists && $_G['page'] == 1}--><!--{template forum/forumdisplay_subforumm}--><!--{/if}-->   
	  
      
	                
	                                
	<div class="tl cl" {if $_G['uid']} style="position: relative;"{/if}>
		<div class="klp_mtypes cl">
		<a href="forum.php?mod=forumdisplay&fid=$_G[fid]" {if !$_GET['filter']}class="cur"{/if}>{lang forum_viewall}</a>			
		<a href="forum.php?mod=forumdisplay&fid=$_G[fid]&filter=lastpost&orderby=lastpost$forumdisplayadd[lastpost]{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}" class="{if $_GET['filter'] == 'lastpost'}cur{/if}">{lang latest}</a>
		<a href="forum.php?mod=forumdisplay&fid=$_G[fid]&filter=heat&orderby=heats$forumdisplayadd[heat]{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}" class="{if $_GET['filter'] == 'heat'}cur{/if}">{lang order_heats}</a>
		<a href="forum.php?mod=forumdisplay&fid=$_G[fid]&filter=digest&digest=1$forumdisplayadd[digest]{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}" class="{if $_GET['filter'] == 'digest'}cur{/if}">{lang digest_posts}</a>
		<!--{if ($_G['forum']['threadtypes'] && $_G['forum']['threadtypes']['listable']) || count($_G['forum']['threadsorts']['types']) > 0}-->
		<a id="thread_types" onclick="toggle_collapse('thread_types_menu')">分类<i class="showmenu"></i></a>
		<!--{else}-->
		<a href="forum.php?mod=forumdisplay&fid=$_G[fid]&filter=hot" class="{if $_GET['filter'] == 'hot'}cur{/if}">{lang hot_thread}</a>
		<!--{/if}-->
		</div>
		<!--{if ($_G['forum']['threadtypes'] && $_G['forum']['threadtypes']['listable']) || count($_G['forum']['threadsorts']['types']) > 0}-->
		<div id="thread_types_menu" class="cl" style="display: none;">
				<ul class="klp_mttp">
					<!--{hook/forumdisplay_threadtype_inner}-->
					<li id="ttp_all" {if !$_GET['typeid'] && !$_GET['sortid']}class="cur a"{/if}><a href="forum.php?mod=forumdisplay&fid=$_G[fid]{if $_G['forum']['threadsorts']['defaultshow']}&filter=sortall&sortall=1{/if}{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}">{lang forum_viewall}</a></li>
					<!--{if $_G['forum']['threadtypes']}-->
						<!--{loop $_G['forum']['threadtypes']['types'] $id $name}-->
							<!--{if $_GET['typeid'] == $id}-->
							<li class="cur a"><a href="forum.php?mod=forumdisplay&fid=$_G[fid]{if $_GET['sortid']}&filter=sortid&sortid=$_GET['sortid']{/if}{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}"><!--{if $_G[forum][threadtypes][icons][$id] && $_G['forum']['threadtypes']['prefix'] == 2}--><img class="vm" src="$_G[forum][threadtypes][icons][$id]" alt="" /> <!--{/if}-->$name<!--{if $showthreadclasscount[typeid][$id]}--><span class="xg1 num">$showthreadclasscount[typeid][$id]</span><!--{/if}--></a></li>
							<!--{else}-->
							<li><a href="forum.php?mod=forumdisplay&fid=$_G[fid]&filter=typeid&typeid=$id$forumdisplayadd[typeid]{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}"><!--{if $_G[forum][threadtypes][icons][$id] && $_G['forum']['threadtypes']['prefix'] == 2}--><img class="vm" src="$_G[forum][threadtypes][icons][$id]" alt="" /> <!--{/if}-->$name<!--{if $showthreadclasscount[typeid][$id]}--><span class="xg1 num">$showthreadclasscount[typeid][$id]</span><!--{/if}--></a></li>
							<!--{/if}-->
						<!--{/loop}-->
					<!--{/if}-->

					<!--{if $_G['forum']['threadsorts']}-->
						<!--{loop $_G['forum']['threadsorts']['types'] $id $name}-->
							<!--{if $_GET['sortid'] == $id}-->
							<li class="cur a"><a href="forum.php?mod=forumdisplay&fid=$_G[fid]{if $_GET['typeid']}&filter=typeid&typeid=$_GET['typeid']{/if}{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}">$name<!--{if $showthreadclasscount[sortid][$id]}--><span class="xg1 num">$showthreadclasscount[sortid][$id]</span><!--{/if}--></a></li>
							<!--{else}-->
							<li><a href="forum.php?mod=forumdisplay&fid=$_G[fid]&filter=sortid&sortid=$id$forumdisplayadd[sortid]{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}">$name<!--{if $showthreadclasscount[sortid][$id]}--><span class="xg1 num">$showthreadclasscount[sortid][$id]</span><!--{/if}--></a></li>
							<!--{/if}-->
						<!--{/loop}-->
					<!--{/if}-->
				</ul>
		   </div>
			<!--{/if}-->
			
		<!--{if $quicksearchlist && !$_GET['archiveid']}--> 
			<!--{subtemplate forum/search_sortoptionm}--> 
		<!--{/if}-->  
		
		<!--{if $quicksearchlist && !$_GET['archiveid']}--> 

				<!--{hook/forumdisplay_top_mobile}--> 
				<!-- main threadlist start --> 

				<!--{subtemplate forum/forumdisplay_sortm}-->
			
				<!--{else}-->
						<!--{subtemplate forum/forumdisplay_listm}-->	
				<!--{/if}-->
	</div>


	<div class="bm bw0 pgs klp_mpgs cl">
		<span id="klp_page">$multipage</span>
	</div>
	<div class="pullrefresh" style="display:none;"></div>
	<script src="{$_G['style']['styleimgdir']}/js/jaliswall.js"></script>
	<script type="text/javascript">
		jq(function(){
			jq('.wall').jaliswall({ item: '.article' });
		});
	</script>
</div>